package cn.com.surker.enums.oa;

import cn.com.surker.enums.IDescription;

/**
 * @Author lucky
 * @create 2023年03月29 8:42
 * @desc
 */
public enum LeaveEnum implements IDescription {

    AFFAIR(0,"事假"), ILLNESS(1,"病假"), YEAR(2,"年假"),
    MATERNITY(3,"产假"), FUNERAL(4,"丧假"), FEED(5,"哺育假"),
    SUFFERED(6, "工伤假"), REPLENISH(7, "补休"), OTHER(8, "其他")
    , MARRY(9, "婚假");

    private final String description;

    private final Integer code;

    LeaveEnum(Integer code, String description) {
        this.description = description;
        this.code = code;
    }

    @Override
    public String getDescription() {
        return description;
    }

    public Integer getCode() {return code;}
}
